//
//  RequestLoadingView.h
//  myhuibao
//
//  Created by ewenlong on 14-4-2.
//  Copyright (c) 2014年 myhuibao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ASINetworkQueue.h"
#import "ASIHTTPRequest.h"


@interface RequestLoadingView : UIView
{
    id __weak delegate;
    SEL queueFinishSelector;
}

@property (assign, nonatomic) BOOL bFirstRequest;

@property (strong, nonatomic) UIActivityIndicatorView *activityView ;

@property (strong, nonatomic) ASINetworkQueue *networkqueue;

- (void)setActivityViewColor:(UIColor *)color;

- (void)setQueueFinishSelector:(SEL)sel;

- (void)addRequestToQueue:(id)request;

- (void)startRequestActivityView;

- (void)setRequestFinishSelector:(SEL)sel;

- (void)setRequestFailSelector:(SEL)sel;

- (void)startRequestQueue;

- (void)DidqueueFinishSelector;

- (UIView *)initRequestLoadingView:(id)wdelegate queueFinishSelector:(SEL)sel viewFrame:(CGRect)frame;

@end
